package com.example.demo.dao.user;

import com.example.demo.po.user.User;
import com.example.demo.vo.user.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserDao {
     Integer insertUser(UserVO userVO);

     User selectUserByName(String username);

     String selectNameByUid(Integer uid);

     void updateTakeTaskNum(String username);
     void updateAbility(@Param("username") String username,@Param("difficulty")Integer difficulty);

     void updatePreferencePerformance(String username);
     void updatePreferenceFunction(String username);

     void updateDeviceWindows(String username);
     void updateDeviceMac(String username);
     void updateDeviceLinux(String username);
     void updateDeviceAndroid(String username);
     void updateDeviceIos(String username);
     List<User> selectAllWorkers();
}
